package com.yonyou.byb.utils;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import nc.jdbc.framework.processor.BaseProcessor;

public class MapProcessor extends BaseProcessor {

	private static final long serialVersionUID = 1L;

	@Override
	public Object processResultSet(ResultSet rs) throws SQLException {
		Map<String, String> map = new HashMap<String, String>();
		while(rs.next()){
			map.put(rs.getString(1), rs.getString(2));
		}
		return map;
	}

}
